package mybatis.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import mybatis.dao.FamilyDao;
import mybatis.service.IFamilyService;
import mybatis.service.ITeacherService;

@Transactional
@Service
public class FamilyServiceImpl implements IFamilyService {
    @Autowired
    private FamilyDao familyDao;

    @Override
    public void update(Long id, String name) {
        familyDao.updateById(id, name);
    }

}
